package com.coocaa.ops.admin.v1.timedtask.enums;

/**
 * @author bijiahao
 * @date : 2018/1/2.
 * @description 定时任务取消状态 枚举
 */
public enum TaskStatusEnums {

    /**
     * 定时任务枚举
     */
    TASK_NORMAL_CANCEL(0, "Scheduled task cancelled successfully"),
    NO_TASK(1, "The resource does not have a corresponding scheduled task"),
    TASK_HAS_FINISHED(3, "The resource timing task has completed"),
    TASK_CAN_NOT_CANCEL(2, "The task is only 2 minutes away from execution and cancellation is not allowed"),
    TASK_HAS_EXECUTED_RIGHT_NOW(4, "The scheduled task has been re-executed"),
    TASK_HAS_NOT_ONLINE_COPY(5, "There is currently a draft-pending review-review failed copy"),
    ;

    private final int status;
    private final String desc;

    private TaskStatusEnums(final int status, final String desc) {
        this.status = status;
        this.desc = desc;
    }

    public int getStatus() {
        return status;
    }

    public String getDesc() {
        return desc;
    }
}
